package com.wushi.lenovo.asia5b.app_widget.bottomtab;

import android.view.animation.LinearInterpolator;

/**
 * Created by zhangyuncai on 2019/11/20.
 * 首页 批 字的动画
 */
public class PiLinearInterpolator extends LinearInterpolator {
    float input2;
    boolean isMax = false;

    @Override
    public float getInterpolation(float input) {
        if (input2 > input) {//正在缩小
            isMax = false;
        } else {//正在放大
            isMax = true;
        }
        this.input2 = input;
        return isMax ? 0 : 1;
    }
}
